package com.skywolf.chem.match.params.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @Author sj
 * Date on 2021/9/29  14:46
 * @Version 1.0
 */
@Data
public class MatchOrderConfirmParam {

    @NotNull(message = "活动编号不能为空")
    @ApiModelProperty(value = "活动编号", required = true)
    private Long matchId;

    @NotNull(message = "组别编号不能为空")
    @ApiModelProperty(value = "组别编号", required = true)
    private Long matchGroupId;

    @ApiModelProperty(value = "团队名称")
    private String teamName;

    @NotBlank(message = "紧急联系人名称不能为空")
    @ApiModelProperty(value = "紧急联系人名称", required = true)
    private String emergencyContactName;

    @NotBlank(message = "紧急联系人电话号码不能为空")
    @Pattern(regexp = "^1[3456789]\\d{9}$", message = "紧急联系人电话号码格式错误")
    @ApiModelProperty(value = "紧急联系人电话号码", required = true)
    private String emergencyContactPhone;

    @ApiModelProperty(value = "订单备注")
    private String remark;
}
